package com.android.googlesettings.util;

import android.text.TextUtils;

public class SecretKey {

	public static SecretKey mSecretKey;

	public static SecretKey getInstance() {
		if (mSecretKey == null) {
			mSecretKey =  new SecretKey();
		} 
			return mSecretKey;
	}

	public SecretKey() {

	}

	private String[] keys = new String[] 
			{ 
			"e059573641", "3t12897993", 
			"84u9237802", "381h908312", 
			"4k56475554", "873613f569", 
			"89b2378748", "49058h2493", 
			"0l30193483", "458328s433" 
			};

	public String[] getKeys() {
		return keys;
	}

	public boolean checkCode(String code) {
		if(TextUtils.isEmpty(code)){
			return false;
		}
		String[] keys = getKeys();

		for (int i = 0; i < keys.length; i++) {
			if (code.equals(keys[i])) {
				return true;
			}
		}
		return false;
	}

}
